#include <stdio.h>

double balance[10];
double balance2[] = {1000.0, 2.0, 3.4, 7.0, 50.0};
double balance3[0];

int main(int argc, char const *argv[])
{
    for (int j = 0; j < 10; j++ )
    {
        printf("Element[%d] = %d\n", j, balance[j] );
    }
    printf("array length:%d\n", sizeof(balance) / sizeof(balance[0]));
    int length = sizeof(balance2) / sizeof(balance2[0]);
    printf("array length2:%d, ele %.1f\n", length, balance2[1]);
    printf("array length3:%d\n", sizeof(balance3));
    return 0;
}
